summaryrefslogtreecommitdiff
path: root/src/pages/[locale]/furthsettins/scotsoun
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/[locale]/furthsettins/scotsoun')
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro28
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro30
-rw-r--r--src/pages/[locale]/furthsettins/scotsoun/index.astro23
3 files changed, 0 insertions, 81 deletions
diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro
deleted file mode 100644
index 4244f70..0000000
--- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/index.astro
+++ /dev/null
@@ -1,28 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import tPage from '$i18n/translations/pages/scotsounRelease';
-import translate from '$i18n/translate';
-import type Locale from '$types/Locale';
-import { getScotsoun } from '$data/scotsoun';
-import type ScotsounId from '$types/ScotsounId';
-import Scotsoun from '$components/Scotsoun.astro';
-
-export async function getStaticPaths() {
- const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[];
- return scotsounIds.flatMap((n) =>
- localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } }))
- );
-}
-
-const locale = Astro.params.locale as Locale;
-const scotsounId = Astro.params.scotsounId as ScotsounId;
-const t = translate(locale);
-
-const scotsoun = await getScotsoun[scotsounId]();
----
-
-<Page title={t(tPage, { key: 'title', scotsounId, name: scotsoun.title })}>
- <Scotsoun scotsoun={scotsoun} />
- <script src="$scripts/wc/paypal-product-buttons.ts"></script>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro b/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
deleted file mode 100644
index 9e152ee..0000000
--- a/src/pages/[locale]/furthsettins/scotsoun/[scotsounId]/payment-success-confirmation.astro
+++ /dev/null
@@ -1,30 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tPage from '$i18n/translations/pages/scotsounPaymentSuccessConfirmation';
-import type Locale from '$types/Locale';
-import { getScotsoun } from '$data/scotsoun';
-import type ScotsounId from '$types/ScotsounId';
-
-export async function getStaticPaths() {
- const scotsounIds = Object.keys(getScotsoun) as `${ScotsounId}`[];
- return scotsounIds.flatMap((n) =>
- localeStaticPaths.map((p) => ({ ...p, params: { ...p.params, scotsounId: n } }))
- );
-}
-
-const locale = Astro.params.locale as Locale;
-const scotsounId = Astro.params.scotsounId as ScotsounId;
-const t = translate(locale);
----
-
-<Page title={t(tPage, { key: 'title' })}>
- <section>
- <h1>{t(tPage, { key: 'title' })}</h1>
- <p>{t(tPage, { key: 'payment-confirmation-message', scotsounId })}</p>
- <a href={`/${locale}/furthsettins/scotsoun/${scotsounId}`}>
- {t(tPage, { key: 'back-button-text', scotsounId })}
- </a>
- </section>
-</Page>
diff --git a/src/pages/[locale]/furthsettins/scotsoun/index.astro b/src/pages/[locale]/furthsettins/scotsoun/index.astro
deleted file mode 100644
index 26f1f13..0000000
--- a/src/pages/[locale]/furthsettins/scotsoun/index.astro
+++ /dev/null
@@ -1,23 +0,0 @@
----
-import Page from '$layouts/Page.astro';
-import localeStaticPaths from '$lib/localeStaticPaths';
-import translate from '$i18n/translate';
-import tPage from '$i18n/translations/pages/scotsounGallery';
-import type Locale from '$types/Locale';
-import ScotsounCdGallery from '$components/ScotsounCdGallery.astro';
-
-export async function getStaticPaths() {
- return localeStaticPaths;
-}
-
-const locale = Astro.params.locale as Locale;
-const t = translate(locale);
----
-
-<Page title={t(tPage, { key: 'title' })}>
- <section>
- <h1>Scotsoun</h1>
- <p>{t(tPage, { key: 'about-scotsoun' })}</p>
- <ScotsounCdGallery />
- </section>
-</Page>